/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLag;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/**
 *
 * @author Ronni
 */
public class OrderArr {
    private int orderID;
    private Calendar date;
    private String startTime;
    private String endTime;
    private int amountOfLanes;
    private int noOfPersons;
    private int noOfPersonsOnlyFood;
    private double totalPrice;
    private Customer customer;
    private Employee employee;
    private Room room;
    private Event event;
    private String description;
    private String bowlingFrom;
    public OrderArr(int orderID, Calendar date, String startTime, String endTime, int amountOfLanes, int noOfPersons, int noOfPersonsOnlyFood, double totalPrice, Customer customer, Employee employee, Room room, Event event,String description, String bowlingFrom) {
        this.orderID = orderID;
        this.date = date;
        this.startTime = startTime;
        this.endTime = endTime;
        this.amountOfLanes = amountOfLanes;
        this.noOfPersons = noOfPersons;
        this.noOfPersonsOnlyFood = noOfPersonsOnlyFood;
        this.totalPrice = totalPrice;
        this.customer = customer;
        this.employee = employee;
        this.room = room;
        this.event = event;
        this.description = description;
        this.bowlingFrom = bowlingFrom;
    }

    public OrderArr() {
    }
    

    public int getAmountOfLanes() {
        return amountOfLanes;
    }

    public void setAmountOfLanes(int amountOfLanes) {
        this.amountOfLanes = amountOfLanes;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Calendar getDate() {
        return date;
    }
    public String getDateAsString() {
        SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
        Date newDate = new Date(date.getTimeInMillis());
        return sdf.format(newDate);
    }

    public void setDate(Calendar date) {
        this.date = date;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Event getEvent() {
        return event;
    }

    public void setEvent(Event event) {
        this.event = event;
    }

    public int getNoOfPersons() {
        return noOfPersons;
    }

    public void setNoOfPersons(int noOfPersons) {
        this.noOfPersons = noOfPersons;
    }

    public int getNoOfPersonsOnlyFood() {
        return noOfPersonsOnlyFood;
    }

    public void setNoOfPersonsOnlyFood(int noOfPersonsOnlyFood) {
        this.noOfPersonsOnlyFood = noOfPersonsOnlyFood;
    }

    public int getOrderID() {
        return orderID;
    }

    public void setOrderID(int orderID) {
        this.orderID = orderID;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    


    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getBowlingFrom() {
        return bowlingFrom;
    }

    public void setBowlingFrom(String bowlingFrom) {
        this.bowlingFrom = bowlingFrom;
    }
    
    
    
}
